import 'package:json_annotation/json_annotation.dart';

part 'account_bean.g.dart';


@JsonSerializable()
class AccountBean extends Object with _$AccountBeanSerializerMixin{

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'code')
  String code;

  @JsonKey(name: 'result')
  AccountBeanResult  result;

  AccountBean(this.msg,this.code,this.result,);

  factory AccountBean.fromJson(Map<String, dynamic> srcJson) => _$AccountBeanFromJson(srcJson);

}


@JsonSerializable()
class AccountBeanResult extends Object with _$AccountBeanResultSerializerMixin{

  @JsonKey(name: 'pageNum')
  int pageNum;

  @JsonKey(name: 'pageSize')
  int pageSize;

  @JsonKey(name: 'size')
  int size;

  @JsonKey(name: 'orderBy')
  String orderBy;

  @JsonKey(name: 'startRow')
  int startRow;

  @JsonKey(name: 'endRow')
  int endRow;

  @JsonKey(name: 'total')
  int total;

  @JsonKey(name: 'pages')
  int pages;

  @JsonKey(name: 'list')
  List<dynamic> list;

  @JsonKey(name: 'firstPage')
  int firstPage;

  @JsonKey(name: 'prePage')
  int prePage;

  @JsonKey(name: 'nextPage')
  int nextPage;

  @JsonKey(name: 'lastPage')
  int lastPage;

  @JsonKey(name: 'isFirstPage')
  bool isFirstPage;

  @JsonKey(name: 'isLastPage')
  bool isLastPage;

  @JsonKey(name: 'hasPreviousPage')
  bool hasPreviousPage;

  @JsonKey(name: 'hasNextPage')
  bool hasNextPage;

  @JsonKey(name: 'navigatePages')
  int navigatePages;

  @JsonKey(name: 'navigatepageNums')
  List<dynamic> navigatepageNums;

AccountBeanResult (this.pageNum,this.pageSize,this.size,this.orderBy,this.startRow,this.endRow,this.total,this.pages,this.list,this.firstPage,this.prePage,this.nextPage,this.lastPage,this.isFirstPage,this.isLastPage,this.hasPreviousPage,this.hasNextPage,this.navigatePages,this.navigatepageNums,);

  factory AccountBeanResult .fromJson(Map<String, dynamic> srcJson) => _$AccountBeanResultFromJson(srcJson);

}

